package com.rs.game.player.dialogues.impl;

import com.rs.game.player.content.Slayer.SlayerMaster;
import com.rs.game.player.dialogues.Dialogue;

public class SlayerVeteran extends Dialogue{
    
    @Override
    public void start() {
		sendOptionsDialogue("Which slayer master would you like to talk to?", "Vannaka", "Chaeldar", "Sumona", "Duradal", "Next page...");
    }

    @Override
    public void run(int interfaceId, int componentId) {
    	if (stage == -1) {
    		if (componentId == OPTION_1) {
    			SlayerMaster.startInteractionForId(player, 1597, 1);
    		} else if (componentId == OPTION_2) {
    			SlayerMaster.startInteractionForId(player, 1598, 1);
    		} else if (componentId == OPTION_3) {
    			SlayerMaster.startInteractionForId(player, 7780, 1);
    		} else if (componentId == OPTION_4) {
    			SlayerMaster.startInteractionForId(player, 8466, 1);
    		} else if (componentId == OPTION_5) {
    			sendOptionsDialogue("Which slayer master would you like to talk to?", "Lapalok", "Kuradal", "Back to mainpage...");
    			stage = 0;
    		}
    	} else if (stage == 0) {
    		if (componentId == OPTION_1) {
    			SlayerMaster.startInteractionForId(player, 8467, 1);
    		} else if (componentId == OPTION_2) {
    			SlayerMaster.startInteractionForId(player, 9085, 1);
    		} else if (componentId == OPTION_3) {
    			stage = -1;
    		} 
    	}
    }

    @Override
    public void finish() {

    }

}
